package io.xxx.xbutler.constant;

import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.time.format.DateTimeFormatter;

public interface Formats {

    String DATE_FORMAT = "yyyy-MM-dd";

    String COMPACT_DATE_FORMAT = "yyyyMMdd";

    String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    NumberFormat NUMBER_FORMAT = new DecimalFormat("###,##0.00");

    DateTimeFormatter COMPACT_DATE_FORMATTER = DateTimeFormatter.ofPattern(COMPACT_DATE_FORMAT);

    DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(DATE_FORMAT);

    DateTimeFormatter DATETIME_FORMATTER = DateTimeFormatter.ofPattern(DATETIME_FORMAT);
}
